<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <script src="https://cdn.bootcss.com/vue/2.5.16/vue.js"></script>
        <style>
            button{
                background-color: #fff;
                border: 1px solid #000;
                border-radius: 5px;
                padding: 5px 10px;
                cursor: pointer;
                transition: all .5s;
            }
       </style>
    </head>
    <body>
        <button>
            Web前端初体验
        </button>
        <script>
            document.querySelector('button').onclick = ()=>{
                alert('点击了按钮')
            }
        </script>
    </body>

</html>